-
-
Notifications
You must be signed in to change notification settings - Fork 787
perf: improve get mode #11695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
perf: improve get mode #11695
Conversation
✅ Deploy Preview for rspack ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
📝 Benchmark detail: Open
|
📦 Binary Size-limit
❌ Size increased by 128bytes from 47.44MB to 47.44MB (⬆️0.00%) |
CodSpeed Performance ReportMerging #11695 will not alter performanceComparing Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR optimizes the determine_export_assignments
function by avoiding redundant processing of modules that have already been handled. It introduces a tracking mechanism to skip duplicate module processing, which should improve performance when the same module is introduced by multiple dependencies.
- Adds deduplication logic to prevent reprocessing the same module
- Introduces a
handled_modules
set to track processed modules - Skips export processing for already-handled modules while maintaining index consistency
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Summary
If a module has been processed by some dependencies before, then the same module introduced by left dependencies will not affect the result of get mode
Related links
Checklist